package com.alignet.gn.util;

import java.io.File;
import java.io.FileInputStream;
import java.sql.Blob;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import org.hibernate.Hibernate;

import com.alignet.gn.hibernate.TgnSolicitud;
import com.alignet.gn.hibernate.dao.TgnRequestDAO;

public class Result {

	private String code = "";
	private String message = "";
	private Object[] args;
	private Object object ;
	private List<Object> vector = new ArrayList<Object>();
	private String cadena=null;
	
	
	public List<Object> getVector() {
		return vector;
	}

	public void setVector(List<Object> vector) {
		this.vector = vector;
	}

	public String getResult() {
		return((this.isSuccess())?getMessage():getCode());
	}
	
	public Object getObject() {
		return object;
	}

	public void setObject(Object object) {
		this.object = object;
	}

	public Object[] getArgs() {
		return args;
	}

	public void setArgs(Object[] args) {
		this.args = args;
	}

	public boolean isSuccess() {
		return ((getCode().trim().length()>0)?false:true);
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public String getCadena() {
		return cadena;
	}

	public void setCadena(String cadena) {
		this.cadena = cadena;
	}
	


}
